Skip to content

fix(fleet-dispatch): status honors --help and rejects stray arguments - #5564

Merged
dezren39 merged 1 commit into
mainfrom
creator-b/5560-dispatch-status-args
Nov 4, 2026
Merged

dezren39 merged 1 commit into
mainfrom
creator-b/5560-dispatch-status-args

Conversation

@dezren39

@dezren39 dezren39 commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Fixes #5560

fleet dispatch status discarded its argument list in run() and
verb_status took no arguments, so status --help performed a live
GET /health instead of printing help and any typo'd argument was
silently swallowed — unlike launch/enqueue, which print usage for
--help with no network call and reject unknown options via
parse_args (exit 2).

  • verb_status(config, args): --help/-h prints a new STATUS_USAGE
    and returns before any transport is opened; any other argument is a
    usage error (exit 2) naming it, also before transport.
  • Bare status is unchanged.
  • New unit test status_help_and_rejection_need_no_service pins both
    paths (they return promptly against a default config whose transport
    would otherwise probe/dial).

Verified:

  • cargo test -p fleet-dispatch on the laptop: 7 passed (incl. the new
    test), fmt applied.
  • Behavioral re-probe (probe crate path-dep on this worktree, fake
    pm-dispatch server): status --help → usage, exit 0, no request;
    status --bogus-junk → usage error, exit 2, no request; bare
    status → health JSON, exit 0; server log shows exactly one
    GET /health (the control).

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 4, 2026 15:46
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T15:48:26.245225Z 7aa2bb7 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 merged commit d3fb961 into main Nov 4, 2026
@dezren39
dezren39 deleted the creator-b/5560-dispatch-status-args branch November 4, 2026 15:47
@coderabbitai

coderabbitai Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fleet dispatch status silently ignores all arguments — --help performs a live GET /health and typos are swallowed

1 participant